import {
  http,
  toast
} from 'uview-plus'

// 首页
export const home = (params) => http.get('/api/index/home', { params })
// 轮播图
export const swiper = (params) => http.get('/api/index/swiper', { params })
// 所有城市
export const city = (params) => http.get('/api/common/city', { params })
// 小区列表
export const xiaoqu = (params) => http.get('/api/index/xiaoqu', { params })
// 小区户型
export const get_house_type = (params) => http.get('/api/users/staff/get_house_type', { params })
// 房源列表
export const houseList = (params) => http.get('/api/house/lst', { params })
// 房源选项
export const houseOption = (params) => http.get('/api/house/option', { params })
// 房源详情
export const houseDetail = (params) => http.get('/api/house/detail', { params })
// 授权登录
export const mp_login = (params, config = {}) => http.post('/api/user/mp_login', params, config)
// 我要买房/推荐买房
export const buy_house = (params, config = {}) => http.post('/api/users/trade/buy_house', params, config)
// 上传图片
export const upload = '/api/common/upload'
// 我要卖房/推荐卖房
export const sell_house = (params, config = {}) => http.post('/api/users/trade/sell_house', params, config)
// 活动列表
export const activityList = (params) => http.get('/api/activity/lst', { params })
// 活动详情
export const activityDetail = (params) => http.get('/api/activity/detail', { params })
// 活动分享
export const activityShare = (params) => http.get('/api/activity/share', { params })
// 活动报名
export const signup = (params) => http.post('/api/activity/signup', params)
// 收货地址
export const addressList = (params) => http.get('/api/users/address/lst', { params })
// 获取地区
export const region = (params) => http.get('/api/common/region', { params })
// 添加地址
export const create = (params) => http.post('/api/users/address/create', params)
// 编辑地址
export const update = (params) => http.post('/api/users/address/update', params)
// 编辑地址详情
export const addressDetail = (params) => http.get('/api/users/address/detail', { params })
// 设为默认地址
export const changeDefault = (params) => http.get('/api/users/address/changeDefault', { params })
// 删除地址
export const addressDelete = (params) => http.get('/api/users/address/delete', { params })
// 个人中心
export const userinfo = (params) => http.get('/api/user/userinfo', { params })
// 修改资料
export const profile = (params) => http.post('/api/user/profile', params)
// 经纪人认证
export const createBroker = (params) => http.post('/api/users/broker/create', params)
// 经纪人信息
export const brokerInfo = (params) => http.get('/api/users/broker/info', { params })
// 退出登录
export const logout = (params) => http.post('/api/user/logout', params)
// 我的客户
export const mineCustom = (params) => http.get('/api/users/broker/custom', { params })
// 我的团队
export const mineTeam = (params) => http.get('/api/users/broker/team', { params })
// 推荐的经纪人列表
export const staffBroker = (params) => http.get('/api/users/staff/broker', { params })
// 添加客户
export const custom_create = (params) => http.post('/api/users/staff/custom_create', params)
// 客户列表
export const custom_lst = (params) => http.get('/api/users/staff/custom_lst', { params })
// 客户详情
export const custom_detail = (params) => http.get('/api/users/staff/custom_detail', { params })
// 客户跟进
export const custom_follow = (params) => http.post('/api/users/staff/custom_follow', params)
// 房源选项
export const house_config = (params) => http.post('/api/users/staff/house_config', { params })
// 房源列表
export const house_lst = (params) => http.get('/api/users/staff/house_lst', { params })
// 添加房源
export const house_create = (params) => http.post('/api/users/staff/house_create', params)
// 编辑房源
export const house_update = (params) => http.post('/api/users/staff/house_update', params)
// 删除房源
export const house_del = (params) => http.post('/api/users/staff/house_del', params)
// 每日红包
export const house_hb = (params) => http.post('/api/users/staff/house_hb', params)
// 房源详情
export const house_detail = (params) => http.post('/api/users/staff/house_detail', params)
// 钱包信息
export const money = (params) => http.get('/api/user/money', { params })
// 余额明细
export const money_record = (params) => http.get('/api/user/money_record', { params })
// 余额提现
export const extract = (params) => http.post('/api/user/extract', params)
// 我的预定
export const user_order_lst = (params) => http.get('/api/house/user_order_lst', { params })
// 文章类型
export const category = (params) => http.get('/api/article/category', { params })
// 文章列表
export const articleList = (params) => http.get('/api/article/lst', { params })
// 文章点赞
export const articleLikes = (params) => http.get('/api/article/likes', { params })
// 文章详情
export const articleDetail = (params) => http.get('/api/article/detail', { params })
// 文章发布
export const articlePublish = (params) => http.get('/api/article/publish', { params })
// 房源预定
export const reservation = (params) => http.post('/api/house/reservation', params)
// 视频列表
export const videoList = (params) => http.get('/api/video/lst', { params })
// 视频详情
export const videoDetail = (params) => http.get('/api/video/detail', { params })
// 视频收藏
export const videoLikes = (params) => http.get('/api/video/likes', { params })
// 抽奖配置
export const luck_config = (params) => http.get('/api/activity/luck_config', { params })
// 参与抽奖
export const luck_lottery = (params) => http.get('/api/activity/luck_lottery', { params })
// 中奖记录
export const user_prize = (params) => http.get('/api/activity/user_prize', { params })
// 打卡信息
export const clockinInfo = (params) => http.get('/api/clockin/info', { params })
// 立即打卡
export const dosign = (params) => http.get('/api/clockin/dosign', { params })
// 商品列表
export const productList = (params) => http.get('/api/store/product/lst', { params })
// 商品详情
export const productDetail = (params) => http.get('/api/store/product/detail', { params })
// 确认订单
export const orderConfirm = (params) => http.get('/api/store/order/confirm', { params })
// 兑换
export const orderCreate = (params) => http.post('/api/store/order/create', params)
// 兑换记录
export const storeList = (params) => http.get('/api/store/order/lst', { params })
// 协议
export const indexContent = (params) => http.get('/api/index/content', { params })
// 兑换详情
export const orderStoreDetail = (params) => http.get('/api/store/order/detail', { params })
// 积分明细
export const score_record = (params) => http.get('/api/user/score_record', { params })
// 每日红包 -房源
export const houseHb = (params) => http.get('/api/house/hb_lst', { params })
// 每日红包 - 文章
export const articleHb = (params) => http.get('/api/article/hb_lst', { params })
// 邀请信息
export const invite_info = (params) => http.get('/api/user/invite_info', { params })
// 优惠券列表
export const couponList = (params) => http.get('/api/coupon/user_lst', { params })
// 优惠券兑换
export const couponExchange = (params) => http.post('/api/coupon/exchange', params)
// 优惠券详情
export const couponDetail = (params) => http.get('/api/coupon/detail', { params })
// 浏览记录
export const visit_lst = (params) => http.get('/api/user/visit_lst', { params })
// 收藏记录
export const collect_lst = (params) => http.get('/api/user/collect_lst', { params })
// 排行榜
export const ranks = (params) => http.get('/api/house/ranks', { params })
// 根据首字母返回城市列表
export const first_city = (params) => http.get('/api/common/first_city', { params })
// 经纬度获取城市
export const geocoder = (params) => http.get('/api/index/geocoder', { params })
// 检索记录
export const user_search = (params) => http.get('/api/index/user_search', { params })
// 置业顾问
export const zygw_info = (params) => http.get('/api/user/zygw_info', { params })
// 置业顾问备注
export const zygw_save = (params) => http.get('/api/user/zygw_save', { params })
// 我的房源
export const sell_lst = (params) => http.get('/api/users/trade/sell_lst', { params })
// 预定详情
export const user_order_detail = (params) => http.get('/api/house/user_order_detail', { params })
// 取消预定
export const order_cancel = (params) => http.get('/api/house/order_cancel', { params })
// 删除预定
export const order_del = (params) => http.get('/api/house/order_del', { params })
// 意见反馈
export const feedbackCreate = (params) => http.post('/api/feedback/create', params)
// 删除房源
export const sell_delete = (params) => http.get('/api/users/trade/sell_delete', { params })
// 直播列表
export const liveList = (params) => http.get('/api/users/live/lst', { params })
// 创建直播
export const Livecreate = (params) => http.post('/api/users/live/create', params)
// 直播详情
export const Livedetail = (params) => http.post('/api/users/live/detail', params)
// 礼物列表
export const gift_lst = (params) => http.post('/api/users/live/gift_lst', params)
// 打赏礼物
export const give_gift = (params) => http.post('/api/users/live/give_gift', params)
// 领取优惠券
export const receive_coupon = (params) => http.post('/api/users/live/receive_coupon', params)
// 文章评论列表
export const reply_lst = (params) => http.post('/api/article/reply_lst', params)
// 文章评论
export const articleCreate = (params) => http.post('/api/article/create', params)
// 抽奖活动
export const luck_activity = (params) => http.post('/api/activity/luck_activity', params)
// 后台分配个员工的 个人用户发布房源
export const resources = (params) => http.get('/api/users/staff/resources', { params })
// 房源收藏
export const houseLikes = (params) => http.get('/api/house/likes', { params })
// 关闭直播间
export const close_live = (params) => http.post('/api/users/live/close_live',  params )
// 获取直播间点赞数
export const getLikes = (params) => http.get('/api/users/live/getLikes', { params })
// 直播间点赞
export const liveLikes = (params) => http.get('/api/users/live/likes', { params })
// 全部优惠券
export const couponAllList = (params) => http.get('/api/coupon/lst', { params })
// 领取优惠券
export const couponReceive = (params) => http.get('/api/coupon/receive', { params })
// 我推荐的普通人
export const broker_custom = (params) => http.get('/api/users/staff/broker_custom', { params })

